class UPoint;
class Point;

class Handle
{
private:
    UPoint *up; //存储引用计数的类
public:
    Handle();
    Handle(int x, int y);
    Handle(const Point &p);
    Handle(const Handle & h);
    Handle & operator=(const Handle &h);
    ~Handle();
    int x() const;
    Handle & x(int x);
    int y() const;
    Handle & y(int y);
};
